import i18n from '@/language/index'

export const t = i18n.global.t

export default function ImageClassificationModel(id = null, classificationId = null
    ,imageWidth = null ,imageHeight = null, title = null) {
    this.id = id;
    this.classificationId = classificationId;
    this.title = title;
    this.imageWidth = imageWidth;
    this.imageHeight = imageHeight;

    this.rules = {
        title: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
        imageWidth: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
        imageHeight: [
            {required: true, message: t('menu.1'), trigger: 'blur'},
        ],
    }
}